package my;

/**
 * <p>
 * 栈
 * </p>
 *
 * @author AJun
 * @since 2020/8/13
 */
public class Main04 {

    public static void main(String[] args) {
        Stack<Integer> stack = new Stack<>();
        stack.push(11);
        stack.push(22);
        stack.push(33);
        stack.push(44);

        while (!stack.empty()) {
            System.out.println(stack.pop());
        }
    }

}
